﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace HCD.Entities
{
    [Table("USER")]
    public class UserEntity : Entity<long>,ISoftDelete
    {
        /// <summary>
        /// 用户账号
        /// </summary>
        [Column("USER_NAME", TypeName = "VARCHAR(20)"),Required]
        public string UserName { get; set; }

        /// <summary>
        /// 用户密码(加密)
        /// </summary>
        [Column("PASSWORD_HASH", TypeName = "VARCHAR(100)"),Required]
        public string PasswordHash { get; set; }

        /// <summary>
        /// 是否初始密码
        /// </summary>
        [Column("INITIAL_PWD")]
        public bool InitialPwd { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        [Column("PHONE_NUMBER",TypeName = "VARCHAR(20)")]
        public string PhoneNumber { get; set; }

        /// <summary>
        /// 手机号是否验证
        /// </summary>
        [Column("PHONE_NUMBER_CONFIRMED")]
        public bool? PhoneNumberConfirmed { get; set; }
        /// <summary>
        /// Im的Id
        /// </summary>
        [Column("IM_ID",TypeName ="VARCHAR(20)")]
        public string ImId{get;set;}
        public bool IsDeleted { get; set ; }
    }
}
